package com.zhangwei.liwushuo.config;

/**
 * @说 明：项目常量类
 * @项目名称：LiWuShuo
 * @包 名： com.zhangwei.liwushuo.config
 * @类 名： AppConstants
 * @创 建人： zhangwei
 * @创建时间：2015-08-14 19:25
 * @版 本：v1.0
 * @修 改人：
 * @修改时间：
 * @修改备注：
 */
public class AppConstants {
    /**
     * 首页 精选
     */
    public static final String URL_HOME_FEATURED = "http://api.liwushuo.com/v2/channels/109/items?limit=20&offset=0&gender=2&generation=4";
    /**
     * 首页 精选 广告栏
     */
    public static final String URL_HOME_FEATURED_BANNERS = "http://api.liwushuo.com/v2/banners";
    /**
     * 首页 精选 促销
     */
    public static final String URL_HOME_FEATURED_PROMOTIONS = "http://api.liwushuo.com/v2/promotions?gender=2&generation=4";
    /**
     * 首页 穿搭
     */
    public static final String URL_HOME_CHUANDA = "http://api.liwushuo.com/v2/channels/110/items?limit=20&offset=0&gender=2&generation=4";
    /**
     * 首页 单品
     */
    public static final String URL_DANPIN = "http://api.liwushuo.com/v2/items?limit=20&offset=0&gender=2&generation=4";
    /**
     * 分类  攻略
     */
    public static final String URL_CATEGORIES_COLLECTIONS = "http://api.liwushuo.com/v2/collections?limit=10&offset=0";
    public static final String URL_CATEGORY_ALL = "http://api.liwushuo.com/v2/channel_groups/all";
    /**
     * 分类_礼物
     */
    public static final String URL_CATEGORIES_GIFT = "http://api.liwushuo.com/v2/item_categories/tree";

    public static String getHomeItemUrl(int channelsIndex) {
        return "http://api.liwushuo.com/v2/channels/" + channelsIndex + "/items?limit=20&offset=" + 0 + "&gender=2&generation=4";
    }

    public static String getDanpinItemUrl(int offset) {
        return "http://api.liwushuo.com/v2/items?limit=20&offset=" + offset + "&gender=2&generation=4";
    }

}
